package com.e3.basdoc.tax.model;

import com.e3.web.core.model.SuperModel;

public class TaxModel extends SuperModel implements TaxFields{

	private static final long serialVersionUID = -8724871473398791964L;

	private String code;
	
	private String name;
	
	private Double rate;

	public String getCode() {
		return get(TaxModel.CODE);
	}

	public void setCode(String code) {
		set(TaxModel.CODE,code);
	}

	public String getName() {
		return get(TaxModel.NAME);
	}

	public void setName(String name) {
		set(TaxModel.NAME,name);
	}

	public Double getRate() {
		return getDoubleValue(TaxModel.RATE);
	}

	public void setRate(double rate) {
		set(TaxModel.RATE,rate);
	}
	
	public String toString(){
		return getName();
	}

}
